-- GENERATED SPELL FOR [Irondeep Shaman] --


function spell0_11600(pUnit, Event) --@Earthbind Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(15786,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_11600', 1, 1)
end

function spell1_11600(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(12492,pUnit)
pUnit:RegisterEvent('Sorts_11600', 3000, 1)
end

function spell2_11600(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(15801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11600', 3000, 1)
end

function Sorts_11600(pUnit, Event)
local choix_sorts_11600 = math.random(0, 2)
if choix_sorts_11600 == 0 then
pUnit:RegisterEvent('spell0_11600', 1, 1)
end
if choix_sorts_11600 == 1 then
pUnit:RegisterEvent('spell1_11600', 1, 1)
end
if choix_sorts_11600 == 2 then
pUnit:RegisterEvent('spell2_11600', 1, 1)
end
end

function mob11600_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11600', math.random(1500, 3000), 1)
end

function mob11600_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11600_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11600_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11600, 1, 'mob11600_Action')
RegisterUnitEvent(11600, 2, 'mob11600_Leave')
RegisterUnitEvent(11600, 3, 'mob11600_Kill')
RegisterUnitEvent(11600, 4, 'mob11600_Die')
